execute if entity @n[tag=IBAARay,type=item_display,distance=..1,nbt={item:{components:{"minecraft:custom_data":{VoidShopSlot:{isNull:true}}}}}] run return fail
execute if entity @n[tag=IBAARay,type=item_display,distance=..1,nbt={item:{components:{"minecraft:custom_data":{void_shop:{price:false}}}}}] run return run title @s actionbar [{"text": "","color": "white"},{"nbt": "item.components.\"minecraft:custom_data\".void_shop.tip","entity": "@n[tag=IBAARay,type=item_display,distance=..1]","interpret": true}]

execute store result score #price temp run data get entity @n[tag=IBAARay,type=item_display,distance=..1] item.components."minecraft:custom_data".void_shop.price

execute unless data entity @n[tag=IBAARay,type=item_display,distance=..1] item.components."minecraft:custom_data".void_shop.tip run return run title @s actionbar [{"text": "","color": "white"},{"nbt": "item.components.\"minecraft:lore\"[0]","entity": "@n[tag=IBAARay,type=item_display,distance=..1]","interpret": true}," | ",{"score": {"name": "#price","objective": "temp"},"color": "light_purple","extra": [{"text": "虚空源质"}],"bold": true}]
execute if data entity @n[tag=IBAARay,type=item_display,distance=..1] item.components."minecraft:custom_data".void_shop.tip run title @s actionbar [{"text": "","color": "white"},{"nbt": "item.components.\"minecraft:custom_data\".void_shop.tip","entity": "@n[tag=IBAARay,type=item_display,distance=..1]","interpret": true}," | ",{"score": {"name": "#price","objective": "temp"},"color": "light_purple","extra": [{"text": "虚空源质"}],"bold": true}]

scoreboard players reset #price temp